<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<s:head theme="ajax"/>
</head>
<body>
<center>
	<table border="0" width="600">
		<caption><b>상세 보기</b></caption>
		<tr>
			<td width="20%" align="right" bgcolor="ededed">
			분류&nbsp;
			</td>
			<td width="30%" align="left">&nbsp;
				${abvo.cname }
			</td>			
			<td width="50%">&nbsp;</td>
		</tr>
		<tr>
			<td width="20%" align="right" bgcolor="ededed">
			이름&nbsp;
			</td>
			<td width="30%" align="left">&nbsp;
				${abvo.name }
			</td>			
			<td width="50%">&nbsp;</td>
		</tr>						
		<tr>
			<td width="20%" align="right" bgcolor="ededed">직급&nbsp;</td>
			<td width="30%" align="left">&nbsp;
				${abvo.job }
			</td>			
			<td width="50%">&nbsp;</td>
		</tr>
		<tr>
			<td width="20%" align="right" bgcolor="ededed">회사명&nbsp;</td>
			<td width="30%" align="left">&nbsp;
				${abvo.company }
			</td>			
			<td width="50%">&nbsp;</td>
		</tr>						
		<tr>
			<td width="20%" align="right" bgcolor="ededed">부서&nbsp;</td>
			<td width="30%" align="left">&nbsp;
				${abvo.dept }
			</td>			
			<td width="50%">&nbsp;</td>
		</tr>
		<tr>
			<td width="20%" align="right" bgcolor="ededed">이메일&nbsp;</td>
			<td width="30%" align="left">&nbsp;
				${abvo.email }
			</td>			
			<td width="50%">&nbsp;</td>
		</tr>
		<tr>
			<td width="20%" align="right" bgcolor="ededed">
			전화번호&nbsp;
			</td>
			<td width="30%" align="left">&nbsp;
				${abvo.tel }
			</td>			
			<td width="50%">&nbsp;</td>
		</tr>
		<tr>
			<td width="20%" align="right" bgcolor="ededed">휴대전화&nbsp;</td>
			<td width="30%" align="left">&nbsp;
				${abvo.hp }
			</td>			
			<td width="50%">&nbsp;</td>
		</tr>
		<tr>
			<td width="20%" align="right" bgcolor="ededed">팩스&nbsp;</td>
			<td width="30%" align="left">&nbsp;
				${abvo.fax }
			</td>			
			<td width="50%">&nbsp;</td>
		</tr>
		<tr>
			<td width="20%" align="right" bgcolor="ededed">메신저ID&nbsp;</td>
			<td width="30%" align="left">&nbsp;
				${abvo.msgid }
			</td>			
			<td width="50%">&nbsp;</td>
		</tr>												
		<tr>
			<td width="20%" align="right" bgcolor="ededed">주소&nbsp;</td>
			<td width="30%" align="left">&nbsp;
				${abvo.addr }
			</td>			
			<td width="50%">&nbsp;</td>
		</tr>		
		<tr>
			<td width="20%" align="right" bgcolor="ededed">생년월일&nbsp;</td>
			<td width="30%" align="left">&nbsp;
				<s:date name="%{#request['abvo.birth']}" format="yyyy-MM-dd"/>
			</td>			
			<td width="50%">&nbsp;</td>
		</tr>		
		<tr>
			<td width="20%" align="right" bgcolor="ededed">홈페이지&nbsp;</td>
			<td width="30%" align="left">&nbsp;
				${abvo.homepage }
			</td>			
			<td width="50%">&nbsp;</td>
		</tr>		
		<tr>
			<td width="20%" align="right" bgcolor="ededed">비고&nbsp;</td>
			<td width="30%" align="left">&nbsp;
				${abvo.description }
			</td>			
			<td width="50%">&nbsp;</td>
		</tr>		
		<tr>
			<td colspan="3" align="center">
				<%--수정, 삭제, 목록등에 필요한 인자값들을 정의한 s:url태그사용 --%>
				<s:url id="listURL" action="list" namespace="/addrbook">
					<s:param name="type">${abvo.type }</s:param>
					<s:param name="curpage">${curpage }</s:param>
					<s:param name="sabun">${session.user.sabun }</s:param>
				</s:url>
				<s:url id="modifyURL" action="update" namespace="/addrbook">
					<s:param name="type">${abvo.type }</s:param>
					<s:param name="curpage">${curpage }</s:param>
					<s:param name="sabun">${session.user.sabun }</s:param>
					<s:param name="addrno">${abvo.addrno }</s:param>
				</s:url>
				<s:url id="deleteURL" action="delete" namespace="/addrbook">
					<s:param name="type">${abvo.type }</s:param>
					<s:param name="curpage">${curpage }</s:param>
					<s:param name="sabun">${session.user.sabun }</s:param>
					<s:param name="addrno">${abvo.addrno }</s:param>
				</s:url>								
				<%--Ajax테마 적용한 s:a태그 사용 --%>
				<s:a href="%{modifyURL}" targets="abcontents" theme="ajax">
					<img src="/ssteam/image/addrbook/ab_con_modify.png" border="0">
				</s:a>
				&nbsp;
				<s:a href="%{deleteURL}" targets="abcontents" theme="ajax">
					<img src="/ssteam/image/addrbook/ab_con_delete.png" border="0">
				</s:a>
				&nbsp;
				<s:a href="%{listURL}" targets="abcontents" theme="ajax">	
					<img src="/ssteam/image/addrbook/ab_con_list.png" border="0">		
				</s:a>				
			</td>			
		</tr>		
	</table>
</center>
</body>
</html>